From 5f5abd454b9f7f3608812adb9ffe3855e23c9b50 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 17 Dec 2006 01:05:03 +0000 Subject: [PATCH] * (bug 8153) doesn't work in site notice The fix for this was to use wfMsgForContentNoTrans() in wfGetCachedNotice(). Since we pass the text through the parser, there's no point in doing message transformations up front, and it allows users to do magic things. --- RELEASE-NOTES | 1 + includes/GlobalFunctions.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3eeff13f43..01604178b8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -331,6 +331,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 4488) Support watching pages on deletion; introduces new user preference * Minor restructuring of Special:Preferences; "watch pages I edit" and "watch pages I create" options now accessible under "Watchlist" options +* (bug 8153) doesn't work in site notice == Languages updated == diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index b81ffb0039..60648070b7 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1456,7 +1456,7 @@ function wfGetCachedNotice( $name ) { return false; } } else { - $notice = wfMsgForContent( $name ); + $notice = wfMsgForContentNoTrans( $name ); if( wfEmptyMsg( $name, $notice ) || $notice == '-' ) { wfProfileOut( $fname ); return( false ); -- 2.20.1